// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package com.geniusai.aip.auth.service;

import com.geniusai.aip.auth.domain.UserDO;
import com.geniusai.aip.auth.domain.edsentity.ObjectUsage;

import java.util.List;

/**
 * @author hml14563
 * @date 2021/9/29
 */
public interface StorageService {
    /**
     * get the storage usage of the cluster
     *
     * @return the object of the storage
     */
    ObjectUsage getObjectStorage();

    /**
     * Create Eds Entrance
     *
     * @param userDO 用户实体
     * @return UserDO
     */
    UserDO edsCreateEntrance(UserDO userDO);

    /**
     * Delete Eds Users and Buckets Entrance
     *
     * @param deleteBucketsList 删除用户list
     * @param deleteUsersList   删除BucketsList
     * @return EdsDeleteResponseDTO
     */
    void edsDeleteEntrance(List<String> deleteBucketsList, List<String> deleteUsersList);
}
